﻿package org.openChart.sprite.elements 
{
	import org.openChart.display.DisplayElement;
	import flash.geom.Point;
	import org.openChart.display.chart.DisplayBarElement;
	import org.openChart.sprite.CommandHandler;
	/**
	 * ...
	 * @author Chongyuan
	 */
	public class Bar3dPyramid extends BarElementSprite
	{
		
		
		public function Bar3dPyramid(displayElement:DisplayElement, commandHandler:CommandHandler)
		{

			super(displayElement, commandHandler);
		}
		
		public override function paint():void {
			var barElement:DisplayBarElement = displayObject as DisplayBarElement;
			graphics.clear();
			fillPyramid(barElement.position.x, barElement.position.y, barElement.width, barElement.topWidth, barElement.height, barElement.color);
		}
	}
	
}